package mt.dummy;

import static org.junit.Assert.*;

import java.io.IOException;
import java.net.UnknownHostException;
import java.util.LinkedList;
import java.util.List;

import javax.swing.JTable;
import javax.swing.JTextField;

import mt.Order;
import mt.comm.ClientComm;
import mt.comm.ClientSideMessage;

import org.junit.Test;

public class MicroTraderClientDummyTest {

	MicroTraderClientDummy mtcd = new MicroTraderClientDummy();
	public ClientComm clientComm;
	
	final JTextField tfServerAdress = new JTextField("ServerAdress");
	final JTextField tfNickname = new JTextField("NickName");
	final JTextField tfStock = new JTextField("Stock name");
	final JTextField tfBuyOrSell = new JTextField("B/S");
	final JTextField tfPricePerUnit = new JTextField("Price per Unit");
	final JTextField tfNumberOfUnits = new JTextField("Number of units");

	@Test
	public void testStart() {

		assertNotNull(mtcd);
//		assertEquals(mtcd.a.getStock(), "a");
//		assertEquals(mtcd.a.getNumberOfUnits(), "10");
//		assertEquals(mtcd.a.getPricePerUnit(), "1");
//		
//		mtcd.a.setNumberOfUnits("4");
//		assertEquals(mtcd.a.getNumberOfUnits(), "4");
//		mtcd.a.setStock("1");
//		assertEquals(mtcd.a.getStock(), "1");
//		

		mtcd.start(clientComm);
		
	}

}
